package com.zrwl.poscloud.xo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zrwl.poscloud.base.entity.Company;
import com.zrwl.poscloud.base.superI.SuperService;
import com.zrwl.poscloud.xo.vo.CompanyAdminRVO;
import com.zrwl.poscloud.xo.vo.CompanyVO;

import java.util.List;

/**
 * 商户表 服务类
 *
 * @author liusitong
 * @date 2018-09-04
 */
public interface CompanyService extends SuperService<Company> {


    /**
     * 获取列表
     *
     * @param companyVO
     * @return
     */
    public IPage<Company> getPageList(CompanyVO companyVO);

    /**
     * 获取简约列表
     *
     * @param companyVO
     * @return
     */
    public IPage<CompanyVO> getPageListSimple(CompanyVO companyVO);

    /**
     * 获取列表
     *
     * @param companyVO
     * @return
     */
    public List<Company> getAllList(CompanyVO companyVO);

    public List<Company> getAllList();

    /**
     * 获取一个
     *
     * @param companyCode
     * @return
     */
    public Company getByCode(String companyCode);

    /**
     * 新增
     *
     * @param companyVO
     */
//    public String addCompany(CompanyVO companyVO);

    /**
     * 编辑
     *
     * @param companyVO
     */
//    public String editCompany(CompanyVO companyVO);

    /**
     * 删除
     *
     * @param companyVO
     */
//    public String deleteCompany(CompanyVO companyVO);


//    public List<CompanyVO> getHouseList(CompanyVO companyVO);

    public IPage<CompanyVO> getCurrentCompany(CompanyVO companyVO);

    public List<CompanyAdminRVO> getPresentCompany();

    public List<Company> getPresentCompanyMes(CompanyVO companyVO);

    public List<Company> getCompanyMesByUid(CompanyVO companyVO);

    //
    public CompanyVO getCurrentCompanyInformation();


    //通过Code查询UID和name给718数据库导入用
    String[] searchCompanyUid(String companyCode);

    public List<Company> getCompanyMesByCodeAndName(CompanyVO companyVO);

//    void getInitializationCompanyDataByCompanyCode();
}
